import request from '/@/utils/request';

/**
 * 修改类目编号
 * @param categoryForm 
 * @returns 
 */
export function getProInfoPage(page:number, size:number, sellerId:string) {
	return request({
		url: `/productInfo/seller/list?page=${page}&size=${size}&sellerId=${sellerId}`,
		method: 'get',
	});
}

/**
 * 
 * @param param 修改商品信息
 * @returns 
 */
export function updateProductInfo(param:any) {
	return request({
		url: `/productInfo/updateOrsave`,
		method: 'post',
		data: param,
	});
}

/**
 * 
 * @param productId 删除商品
 * @returns 
 */
 export function deleteProduct(productId:string) {
	return request({
		url: `/productInfo/delete/${productId}`,
		method: 'delete',
	});
}